import request from "@/utils/request";
enum API{
    CHAT_RECORDA ='/chat/chatRecords',
    CHAT_LAST='/chat/chatLast',
    CHAT_ALLDELETE='/chat/deleteRecords'
}
// 获取与某位好友的全部聊天记录
export const reqChatRecords=(data:any)=>{
    return request.post<any,any>(API.CHAT_RECORDA,data)
}
// 获取与各个好友的未读信息
// 获取与各个好友的最后一条聊天信息

export const reqChatlast=(data:any)=>{
    return request.post<any,any>(API.CHAT_LAST,data)
}
//删除所有聊天记录
export const reqDeleteRecords=(data:any)=>{
    return request.post<any,any>(API.CHAT_ALLDELETE,data)
}